package com.rc.saas.tenant.service.area;


import com.rc.saas.tenant.base.BaseService;
import com.rc.saas.tenant.mapper.area.PlatformAreaMapper;
import com.rc.saas.tenant.model.area.PlatformArea;
import com.rc.saas.tenant.model.area.PlatformAreaExample;
import com.rc.saas.tenant.model.area.PlatformCity;
import com.rc.saas.tenant.model.area.PlatformProvince;

import java.util.List;

public interface PlatformAreaService extends BaseService<String, PlatformArea, PlatformAreaExample, PlatformAreaMapper> {

    /**
     * 查询所有省
     *
     * @return
     */
    List<PlatformProvince> listAllProvince();

    /**
     * 查询城市所对应的地区
     *
     * @param cityId
     * @return
     */
    List<PlatformArea> listAreaByCityId(String cityId);

    /**
     * 查询省所对应的城市
     *
     * @param provinceId
     * @return
     */
    List<PlatformCity> listCityByProvinceId(String provinceId);

}
